package com.xxx.car.mapper;

import com.xxx.car.entity.TbUserMsg;
import com.xxx.car.entity.vo.request.ReqUserMsgQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.access.method.P;

import java.util.List;

public interface TbUserMsgMapper {
    int deleteByPrimaryKey(Integer msgId);

    int insert(TbUserMsg record);

    int insertSelective(TbUserMsg record);

    TbUserMsg selectByPrimaryKey(Integer msgId);

    int updateByPrimaryKeySelective(TbUserMsg record);

    int updateByPrimaryKey(TbUserMsg record);

    List<TbUserMsg> query(ReqUserMsgQuery query);

    TbUserMsg getByIdAndUserId(@Param("msgId") Integer msgId, @Param("userId") Integer userId);

    void modifyStatus(@Param("msgId")Integer msgId, @Param("status") int status);

    void deleteByIdAndUserId(@Param("msgIds")List<Integer> msgIds, @Param("userId") Integer userId);
}